package com.wing.enterprisecab.warehouse;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;


@Data
@NoArgsConstructor
@Accessors(chain = true)
public class MoveDownWarehouseForm {
    /**
     * 对应物料信息
     */
    @Valid
    @Size(min = 1, message = "物料明细不能为空", groups = Add.class)
    List<MoveDownWarehouseItermForm> moveDownWarehouseItermFormList;

    /**
     * ID
     */
    private Long id;

    /**
     * 移库编号
     */
    private String moveDownNumber;

    /**
     * 移库物料数
     */
    private Integer skuNum;

    /**
     * 移出仓库ID
     */
    @NotNull(message = "移出仓库ID不能为空", groups = Add.class)
    private Long outWarehouseId;

    /**
     * 移出仓库名称
     */
    private String outWarehouseName;

    /**
     * 库位数
     */
    private Integer areaNum;

    /**
     * 移入仓库
     */
    @NotNull(message = "移入仓库ID不能为空", groups = Add.class)
    private Long inWarehouseId;

    /**
     * 移入仓库名称
     */
    private String inWarehouseName;

    /**
     * 0 待入库 1入库中 2 完成 3 取消
     */
    private Integer status;

    /**
     * 创建人
     */
    private Long creator;

    /**
     * 修改人
     */
    private Long modifier;


    public interface Add{}

    public interface Update{}

}
